module.exports = {
    publicPath: './',
    devServer: {
        host: 'localhost',
        port: 9527
    },
    css: {
        loaderOptions: {
            scss: {
                prependData: `@import '@/style/index.scss';`
            }
        }
    },
    chainWebpack: config => {
        config.module
            .rule('vue')
            .use('vue-loader')
            .tap(options => {
                options.compilerOptions = {
                    ...(options.compilerOptions || {}),
                    isCustomElement: (tag) => /^micro-app/.test(tag),
                };
                return options
            })
    }
}